package com.dtwave.wechat.service.provider.database.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.dtwave.wechat.service.provider.database.entity.BasNotifyEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Auther: liuwenxiang
 * @Date: 2019/2/26 11:30
 * @Description:
 */
public interface NotifyMapper extends BaseMapper<BasNotifyEntity> {

     List<Map<String, Object>> getNotifyList(@Param("userId") String userId, @Param("type") String type);


     List<Map<String, Object>> getReceiveNotifyList(@Param("userId")String userId, @Param("type") String type);

     String getReadFlag(@Param("notifyId")Integer notifyId,@Param("userId")String userId);

     boolean setReadFlag(@Param("notifyId")Integer notifyId,@Param("userId")String userId);

     List<Map<String, Object>> getReceiverList(@Param("notifyId")Integer notifyId);

     Map<String, Object> notifyDetail(@Param("notifyId")Integer notifyId);

     boolean notifyCheck(@Param("notifyId")Integer notifyId,@Param("userId")String userId);

}
